package com.dianpingmedia.simulate.model;

import org.hibernate.validator.constraints.NotBlank;
import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.NotNull;
import java.util.List;

public class ZMTReviewEntity {


    public static class Request {
        @NotNull
        private Long id;
        @NotBlank(message = "channelId notBlank")
        private String channelId;

        @NotEmpty(message = "positionList empty")
        private List<ReviewResult> positionList;

        @NotBlank(message = "sign notBlank")
        private String sign;

        @NotBlank(message = "token notBlank")
        private String token;

        public Long getId() {
            return id;
        }

        public void setId(Long id) {
            this.id = id;
        }

        public String getChannelId() {
            return channelId;
        }

        public void setChannelId(String channelId) {
            this.channelId = channelId;
        }

        public List<ReviewResult> getPositionList() {
            return positionList;
        }

        public void setPositionList(List<ReviewResult> positionList) {
            this.positionList = positionList;
        }

        public String getSign() {
            return sign;
        }

        public void setSign(String sign) {
            this.sign = sign;
        }

        public String getToken() {
            return token;
        }

        public void setToken(String token) {
            this.token = token;
        }

        public static class ReviewResult {
            private String positionId;
            private List<Long> rejectedMaterials;
            private String remark;


            public String getPositionId() {
                return positionId;
            }

            public void setPositionId(String positionId) {
                this.positionId = positionId;
            }

            public List<Long> getRejectedMaterials() {
                return rejectedMaterials;
            }

            public void setRejectedMaterials(List<Long> rejectedMaterials) {
                this.rejectedMaterials = rejectedMaterials;
            }

            public String getRemark() {
                return remark;
            }

            public void setRemark(String remark) {
                this.remark = remark;
            }
        }

    }


    public static class Response {
        private Integer code;
        private String message;

        public Integer getCode() {
            return code;
        }

        public void setCode(Integer code) {
            this.code = code;
        }

        public String getMessage() {
            return message;
        }

        public void setMessage(String message) {
            this.message = message;
        }
    }
}
